from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns

admin.autodiscover()

urlpatterns = patterns('',
    #(r'^$', 'exams.views.user_exams'),
    (r'^login/$', 'home.views.login'),
    (r'^logout/$', 'home.views.logout'),
    #url(r'^prova/', include('exams.urls')),    
    url(r'^admin/', include(admin.site.urls)),
    #url(r'^respostas/$', 'exams.views.respostas'),
    #url(r'^(?P<perfil_id>\d+)/perfil/$', 'Agenda.views.perfil'),
    #================================================
    (r'^$', 'Agenda.views.home'),
    (r'^agenda/$', 'Agenda.views.agenda'),
    (r'^loja/$', 'Agenda.views.lojas'),     
    url(r'^perfil/(?P<perfil_id>\d+)/$', 'Agenda.views.perfil'),
    url(r'^loja/(?P<loja_id>\d+)/$', 'Agenda.views.loja'),
    
)

urlpatterns += staticfiles_urlpatterns()